/*******************************************************************************
*  file    : file_format_simple_save.hpp
*  created : 20.06.2014
*  author  : Slyshyk Oleksiy (alexSlyshyk@gmail.com)
*******************************************************************************/

#ifndef FILE_FORMAT_SIMPLE_SAVE_HPP
#define FILE_FORMAT_SIMPLE_SAVE_HPP

#include <QObject>
#include <QtPlugin>
#include <interfaces.hpp>

class FileFormatSimpleSave : public QObject , SaveFileFormatInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "tmx.com.ua.dsp.lab.SaveFileFormatInterface" FILE "file_format_simple_save.json")
    Q_INTERFACES(SaveFileFormatInterface)
public:
    virtual QString name() const;
    virtual bool saveDataToFile(const QString& fileName, const NamedData& data);
    virtual QString error();
private:
    QString lastError_;
};

#endif // FILE_FORMAT_SIMPLE_SAVE_HPP
